package com.my.sharding.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.my.sharding.entiy.Product;
import com.my.sharding.mapper.ProductMapper;
import com.my.sharding.service.ProductService;

@Service
public class ProductServiceImpl implements ProductService{

	@Autowired
	private ProductMapper productMapper;
	
	public boolean add(Product p) {
		return productMapper.insert(p)>0?true:false;
	}

}
